package org.dzms.services;



import java.util.List;

import org.dzms.commons.PageHandler;
import org.dzms.commons.sqlHandler;
import org.dzms.dao.FoodDetailsDAO;
import org.dzms.entity.FoodDetails;
import org.dzms.entity.FoodRevDeta;
import org.dzms.entity.UserReview;

public class FoodDetailsService {
	private FoodDetailsDAO fddao = new FoodDetailsDAO();
	
	
//	private FoodDetailsDAO fddao;
//	
//	public FoodDetailsService(){
//		fddao = new FoodDetailsDAO();
//	}
	
	public PageHandler findPage(int cp, String cond) {
		PageHandler pb = new PageHandler(fddao);
		pb.setCurrentPage(cp);
		pb.setCond(cond);
		return pb.findBean();
	}
	
	public List<UserReview> findAllUrs(){
		return fddao.findAllUr();
	}
	
	public List<FoodDetails> findFdId(int fdid) {
		return fddao.findByIdFd(fdid);
	}
	
	public List<FoodRevDeta> findAllFess(){
		return fddao.findAllFes();
	}
	
	
	
	
}
